#pragma once

#include <iostream>
#include <string>
#include <vector>
#include <functional>
using namespace std;
using task_t = function<void()>;

void Download()
{
    // Simulate a download task
    cout << "Downloading file..." << endl;
    cout << "Please wait for 2 seconds..." << endl;
    cout << "Download complete." << endl;
}

void MySQL()
{
    // Simulate a MySQL database task
    cout << "Connecting to MySQL database..." << endl;
    cout << "Please wait for 2 seconds..." << endl;
    cout << "MySQL task complete." << endl;
}

void SyncFile()
{
    // Simulate a file synchronization task
    cout << "Synchronizing files..." << endl;
    cout << "Please wait for 2 seconds..." << endl;
    cout << "File synchronization complete." << endl;
}

void Log()
{
    // Simulate a logging task
    cout << "Logging data..." << endl;
    cout << "Please wait for 2 seconds..." << endl;
    cout << "Logging complete." << endl;
}
vector<task_t> tasks = {Download, MySQL, SyncFile, Log};
